/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.revivius.jbtorrent.entity;

/**
 *
 * @author Revivius
 */
public class FileInfo {
    private String path;
    private long length;

    public FileInfo(String path, long length) {
        this.path = path;
        this.length = length;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the length
     */
    public long getLength() {
        return length;
    }

    /**
     * @param length the length to set
     */
    public void setLength(long length) {
        this.length = length;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("FileInfo[");
        sb.append("length=").append(getLength()).append(", ");
        sb.append("path=").append(getPath());
        sb.append("]");
        return sb.toString();
    }
    
}
